<?php echo <<<EOD
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>分享到朋友圈</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script src="http://jsapi.qq.com/get?api=app.share"></script>
<style>
body { text-align:center; padding:2rem 0 0 0; }
a { text-align:center; }
a img { border:0; width:80%; }
a b { display:block; font-size:2rem; }
a, p {display:none;}
</style>
</head>
<body>
<p id="z">请使用最新的手机版QQ浏览器打开此网址</p>
<a href="javascript:z()" id="s">
    <img src="res/share/1.png">
    <b>分享到朋友圈</b>
</a>
<script>
var c = {
    url         : "http://a.ronghuitx.com/z{$zoneRecord['id']}?from=timeline",
    title       : "{$adRecord['zl_title']}",
    description : "{$adRecord['zl_title']}",
    img_url     : "{$adRecord['zl_img_url']}",
    img_title   : "{$adRecord['zl_title']}",
    to_app      : 8,
    cus_txt     : "请输入此时此刻想要分享的内容"
};

function z() {
    browser.app.share(c);
}

function $(id) {
    return document.getElementById(id);
}

((navigator.appVersion.split("MQQBrowser/").length < 2) ? $('z') : $('s')).style.display = 'block';
</script>
</body>
</html>
EOD;
?>
